package com.chaopei.msite_web.service;

import com.chaopei.msite_web.service.impl.ProductServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author Corday 天涯
 * @Date 2022/5/5 17:42
 * 获取商品管理服务
 */
@FeignClient(value = "goods-mng-impl",fallback = ProductServiceImpl.class)
public interface ProductService {
//    拿到所有商品
    @RequestMapping("/product/getProducts")
    String getProduts();
//  根据条件获取
    @RequestMapping("/product/ps")
    String getPs(@RequestParam("nameCode") String nameCode);
}
